package com.zrt.view;

import org.springframework.stereotype.Controller;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

@Controller
public class Settle extends JDialog implements ActionListener {

    JLabel jl1,jl2,jl3,jl4,jl5,jl6,jl7,jl8;
    JPanel jp1, jp2;
    JButton jb1;


    public void mySettle(){

        jp1 = new JPanel();
        jp1.setLayout(new GridLayout(4,2));

        jl1 = new JLabel("学生人数---------->");
        jl1.setFont(new Font("宋体", Font.BOLD, 22));
        jp1.add(jl1);

        //学生人数 jl2
        jl2 = new JLabel(":");
        jl2.setFont(new Font("宋体", Font.BOLD, 22));
        jp1.add(jl2);

        jl3 = new JLabel("收取学费---------->");
        jl3.setFont(new Font("宋体", Font.BOLD, 22));
        jp1.add(jl3);

        //学费jl4
        jl4 = new JLabel(":");
        jl4.setFont(new Font("宋体", Font.BOLD, 22));
        jp1.add(jl4);

        jl5 = new JLabel("老师人数---------->");
        jl5.setFont(new Font("宋体", Font.BOLD, 22));
        jp1.add(jl5);

        //老师人数 jl6
        jl6 = new JLabel(":");
        jl6.setFont(new Font("宋体", Font.BOLD, 22));
        jp1.add(jl6);

        jl7 = new JLabel("发放工资---------->");
        jl7.setFont(new Font("宋体", Font.BOLD, 22));
        jp1.add(jl7);

        //工资jl4
        jl8 = new JLabel(":");
        jl8.setFont(new Font("宋体", Font.BOLD, 22));
        jp1.add(jl8);

        jb1 = new JButton("确认");
        jb1.setFont(new Font("宋体", Font.BOLD, 22));

        jp2 = new JPanel();
        jp2.setLayout(new FlowLayout());
        jp2.add(jb1);
        add(jp1);
        add(jp2,BorderLayout.SOUTH);





        setTitle("电子科技大学成都学院财务管理系统");
        setSize(500, 300);
        setLocation(550, 200);
        setResizable(false);
        setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
        setVisible(true);
    }


    @Override
    public void actionPerformed(ActionEvent e) {

    }
}
